home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-30 | 1.9 KB | 78 lines | [TEXT/GEOL] |
- Item 9189183 28-March-90 21:16PST
-
- From: BRAINCHILD Brainchild, E Corbett, S Rome,PRT
-
- To: MACDTS Macintosh Developer Tech. Supt.
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: TPopup Question ?
-
-
- Hi !
-
- Two quick questions about Popups...
-
- In trying to track down a solution to a minor problem I'm having with TPopups
- in a TDialogView, I came across the following archived link:
-
- -----------------------
- Item forwarded by A33 to A34
- Item 9749978 31-Oct-89 22:33
- From: WILSON6 Wilson, Dave-Personal Concepts,VCA
- To: NORVELL.J Norvell, Joel
- cc: MACAPP.TECH$ MacApp Technical
- Sub: Popup menus
-
- Joel,
- I don't know if this is the problem, but remember that TPopup's should use
- 'MENU' resources numbered from 64 - 127. Popup's should not contain commands,
- and should therefore not use 'cmnu' resources. DoMenuCommand will not be sent.
-
- Dave
- -----------------------
-
- DemoDialogs.r, on the other hand, contains the following snippet that works
- fine:
-
- -----------------------
- #define kTestPopup 235
-
- resource 'cmnu' (kTestPopup) {
- kTestPopup, textMenuProc, allEnabled, enabled,"Popup:",
- {
- "Item 1", noIcon, "", "", plain, nocommand;
- ...
- "Item 8", noIcon, "", "", plain, nocommand
- }};
- -----------------------
-
- and this is the model that I used for my own popups. Is this a problem ? A
- lurking crash, perhaps ?
-
-
-
- 2) I'm trying to get a disabled separator line to appear in one of my popups.
- If I use
- "-", noIcon, noKey, noMark, plain, nocommand;
- then I get the separator line, but it's not disabled. If I use
- "(-", noIcon, noKey, noMark, plain, nocommand;
- as per Inside Macintosh, I get a menu item that is literally "(-".
- Any hints ?
-
-
- Thanks,
-
- Sean Rome
- Brainchild
-
-
-
-
-
-
-
-
-
-
-